package com.bonc.modules.dial.controller;

import com.bonc.common.utils.Result;
import com.bonc.modules.dial.param.ServDialTestInfoMonParam;
import com.bonc.modules.dial.service.ServDialTestInfoMonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/dialTestInfo")
public class ServDialTestInfoMonController {

    @Autowired
    private ServDialTestInfoMonService servDialTestInfoMonService;

    @RequestMapping("/dialTestStat")
    public Result dialTestStat(ServDialTestInfoMonParam servDialTestInfoMonParam){
        return Result.ok().put("data", servDialTestInfoMonService.dialTestStat(servDialTestInfoMonParam));
    }

    @RequestMapping("/competingProStat")
    public Result competingProStat(ServDialTestInfoMonParam servDialTestInfoMonParam){
        return Result.ok().put("data", servDialTestInfoMonService.competingProStat(servDialTestInfoMonParam));
    }
}
